<?php

namespace Erp\PollBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Erp\PollBundle\Entity\Options
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Erp\PollBundle\Entity\OptionsRepository")
 */
class Options
{
	public function __construct($option = '', $quespoll = '')
	{
		$this->value = $option;
		//$this->quespoll = $quespoll;
		$this->ques_id = $quespoll;
	}
	
	/**
	 * @ORM\ManyToOne(targetEntity="Questionpoll", inversedBy="optionpoll")
	 * @ORM\JoinColumn(name="ques_id", referencedColumnName="id")
	 *
	 */
	
	protected $quespoll;
	
	/**
	 * @ORM\OneToMany(targetEntity="Votes", mappedBy="optionofpoll")
	 *
	 */
	
	protected $votespoll;
	
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer $ques_id
     *
     * @ORM\Column(name="ques_id", type="integer")
     */
    private $ques_id;

    /**
     * @var text $value
     *
     * @ORM\Column(name="value", type="text")
     */
    private $value;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set ques_id
     *
     * @param integer $quesId
     */
    public function setQuesId($quesId)
    {
        $this->ques_id = $quesId;
    }

    /**
     * Get ques_id
     *
     * @return integer 
     */
    public function getQuesId()
    {
        return $this->ques_id;
    }

    /**
     * Set value
     *
     * @param text $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return text 
     */
    public function getValue()
    {
        return $this->value;
    }
}